


{{left_sidebar_enabled,right_sidebar_enabled=False,True}}
{{extend 'layout.html'}}

<h3>Show Selected Product</h3>
{{=form}}

{{if len(productList) != 0:}}
<table>
{{=TR(TD('ID'),TD("Thumbnail"),TD("Brand"),TD("Name"),TD("Gender"),TD("Type"),TD("Current Price"),TD("Reference Price"),TD("SalePrice"))}}
{{for product in productList:}}
{{col=TR(TD(product.id),
    TD(A(IMG(_src=URL('download', args=product.thumbnail), _class='thumbnail'),_href=URL('show/product',args=product.id))),
    TD(product.brand),
    TD(product.name),
    TD(product.gender),
    TD(product.type),
    TD(product.currentPrice),
    TD(product.recordPrice),
    TD(A(product.taobaoPrice, _class='taobaoPrice',_href=URL(product.taobaoLink)))
    )}}

    {{if (product.currentPrice>product.recordPrice) or (product.currentPrice=='0'):}}
        {{col['_class']='WARN'}}
    {{pass}}

    {{=col}}
{{pass}}
</table>
{{pass}}
